package com.quectel.core.module.securitypatrol.dto;

import com.quectel.core.module.device.dto.DeviceDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2022/05/07 14:11
 */
@Data
@Schema
public class SecurityPatrolDeviceSubjectDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     * 设备id
     */
    @Schema(description = "设备id")
    @NotNull
    private Long deviceId;

    /**
     * 巡检项目id
     */
    @Schema(description = "巡检项目id")
    @NotNull
    private Long subjectId;

    /**
     * 巡检种类1安防巡检2质量检查3环境保洁4绿化养护
     */
    private Byte category;

    /************非数据库字段 start ************/

    @Schema(description = "设备信息")
    private DeviceDto deviceDto;

    @Schema(description = "关联项目列表")
    private List<SecurityPatrolSubjectDto> subjectList;

    /************非数据库字段 end **************/
}
